const storeDao = require("../dao/store");

const storeService = {
    // 获取所有商品
    async allGoods() {
        let result = await storeDao.allGoods();
        return result;
    },
    // 获取某一个商品
    async goods(id) {
        let result = await storeDao.goods(id);
        return result;
    }
};

module.exports = storeService;